But once Sasuke finds out Madara was apart of the demise of the uchiha clan then im not so sure sasuke will side with him
Not really....the leaf elders are responsible and the senju (Tobimara).
Madara's Ideal was that the leaf were oppressing the uchiha. Treating them like dogs when they are the ones who built half of the village. Even after he had gotten kicked out and went into hiding the uchiha still used his ideal.
Tobimara told his side of it and why he did it but you honestly think he didn't show any racism at all towards them in public? Typically racist fear what they don't understand and from my understanding now is that Tobimara is bat sht scared of the Uchiha.
Later on the Leaf elders chose to destroy the uchiha clan to help prevent a deceleration of Independence ( Coup d'tat or however you spell it). Preventing a vicious war in which I honestly believe the uchiha able to win. Who in the leaf village at the time had enough power to fight the clan? Besides their own blood?