Admin dashboard code is refactored.