handle if route is not provided condition