Added handling of app state on startup to StartScene method of AppDelegate