added support for goto and items per page