set select boxes function