refactored routes and controller folders