move html from paginate functions to template
Merge pull request #695 from fabrixxm/master

move html from paginate functions to template