add the code for the print/beep/calibrate action