adding pagination and menu