clean up appDelegate