Script upated for timepicker