Show pagination only when there is more than one page to show
Pagination works as expected
Extracted pagination namespace