fix styling for dropdown, minor code style changes