Effects of Flaring Activity on Dynamics of Accretion Disks in YSOs