Starterror startet fixing

Added some queries.
Buttons

Settingswindow will now close if pressing Ok or Cancel.
Other