added menu handling code to time_prog