Smoother animations

Added transitional delay and refactored page change functions