Integrated the next previous but to navigate the templates
Integrated the pagination
Solved the Next Button Bug