fixed several bugs in the settings UI and general overlay system