Added the PageViewController functionality