remove appDelegate from main file