.................go to main page or wait to be redirected