Update app delegate.