Adding admin, refactoring the code for admin
Refactoring sidebar