fixed javascript, and styling for dropdown