Made the scope and instance variable of the app delegate