cleaned up AppDelegate