datepicker visibility fix