fixing page view buttons