added animation to each page