wire up controller properly