fixed a few problems
added implementation of dropdown