added url reverse function to Router
merge conflict