cleanup appDelegate

test by jonathan.