added routes
simplified routes, added sorting to models