comment write cancel button functions