added foreground and background modifiers for the AppDelegate