added handle for no param in routes, and added render to view