redirect main page to referrer