improved initialization of select boxes