IDIOMS

tail wagging the dog

(idiomatic) A minor or secondary part of something controlling the whole.