working buttons for page navigation