add behavior for inline datepicker