Add pagination template and helper class