added pagination to the menu