Added pagination to list
Added pagination controls to the template