added updateTimeTable function to handele html