event handlers for datepicker and datepicker field