added in the condition for setting the html var via an option tag\'s value attribute