Improve position of dropdown when opening up

above function doesn't work great