fixed main window button disabling