Move date insert callbacks to the UI code where they belong