refactor pages for superuser