fix enabling / disabling of buttons