refactored routes to separate classes