add paginate and tempate as the html helper functions