Changed time- and datepicker callback to an interface