update dropdown logic to work with dom utils