Setting route name and conditions