refactor(timepicker): move logic to controller