update appdelegate