working paging logic. new menu bar.