rearranging footer and pagination controls