update user controller
add a method of exposing the current url