Update dropdown directive to be more flexible. Split editor views