Corrects Pagination Flow and Adds Modularity for Errors, Sidebar Widget and Pagination