update appdelegate.m