CORE-426 dropdown better UX and JS function for proper positioning

CORE-426 dropdown better UX and JS function for proper positioning