fixed bug with datepicker showing on load