refactor out init
Pagination menu