pagination and navigation page work