Fix #142 : When clic on "Cancel" on program edition mode, return to control mode with the last state of the program