updating route and url