made timepicker also work on parent elements