automatically loads datepicker on object