invert dropdown and move close in modal