Added badge change, badge text, defaults, and window close