adding pagination system for template 1