update template and view, use pagination to work