Fixed cancel to use http referrer