admin page small refactoring