implemented proper paging in the es views