Final Commit added pagination buttons and template to paginate