Update app delegate