add callback for customized updateUrl function
fix issue with broken url on contract screen #571