disabled cancel button after one click