refactor admin page