CORE-344 adding styling for dropdown and JS function to automaticaly cho...

CORE-344 adding styling for dropdown and JS function to automaticaly choose position