Added pagination for templates list