proper way to exit the application on window closing
ui for the configurable settings