refactored routes and created an admin area