Disable the buttons before the action