Added two litte fixes to the editor garbage collection

Just added 2 lines to cancel buttons for the purpose of garbage collection