cleanup appdelegate.m