Buttons are disabled when opening/closing