fixing page navigation