adding styles for type dropdown, added js as well