improved the pagination and the footer