Disable the button at the right place