complete pagination and main menu