gets value of dropdown