Basics to paginate controllers