Improve button functions: button.toggleEnable() and button.toggleSpin()