add choose time table logic