added a gui for z calibration