added actions for animating page change