Changed admin method and used resourced routes
Restructured the code and made it more readable.