Remove event listeners for showing and hiding the datepicker