Add animation for pages transition