cleanup of datepicker