add referrer
fixed wrong updateURL