tool change macro

having recently changed from mach3, i am trying to get a working semi auto toolchange macro. in mach3, i set zero on the part and then pressed my toolchange button and the machine would go to my fixed probe position, probe twice and then return to the part zero. upon a tool change the machine would go to my toolchange position and wait for me to change tools then i would press the toolchange button and it would probe the new tool and update the zposition. i would like to have something similar in uccnc. the current m31 i am using does exactly what i want apart from it doesn't update the tool offset box in the offset screen. can anybody help with this please. attached are my script from mach3 and my m31 from uccnc. Thanks all