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