Added default behaviour for datepickers