refactoring admin views