adding menus and pagination