Improve pages transition

Pages transition now has smooth animation.