Updated routing system and add generic route for models