added automatic dropdown creation