i made a funtcio that conatains in the WHILE the DOEVENTS
but when i need to write in my CANCEL BUTTON?