added per page to resource controller