made date picking selection more flexible