fixed issue with focusing back to main window, after removing an attribute from setting ui.Fixes #10