Fixed it so the page view controller would return to the beginning from the end