Refactor admin page