got basic functionality of z calibration gui working