somewhat fixed the pagination placement