added the functionality for timepicker #42