capture referrer in onResume