set cancel button to reset