moving paginators HTML from the .html page into the code