updated routing after submitting a url