Added code behind icon badge switch - state saved to NSUserDefaults.