made single app delegate for iPhone and iPad