refactor repository > pagemanager