automatically go to main screen