also sets value of selects