take care to hook up $menu when a "container" was specified and the
dropdown is not inside of $newElement