update app delegate