added animation on page switch