rename  KSAppDelegate to AppDelegate