updated and improveddropdown