changed the position of the custom appDelegate