update select and datepicker