add client side url_for method