edited app delegate