Add functionality for page view controller