appdelegate modify