added switch to main screen