refactored routes following RESTful technique: