Add basic functions to timepicker
Refactor datepicker and timepicker