redraw remaining time function added