made router work with the url params