prevent reloading when clicking to select date in datepicker