small changes in app delegate