cleaned up app Delegate file