Madara has his will instilled in a white zetsu half that he implanted on Obito to save him. With Obito finally being weakened, Madara was able to take advantage and let his will completely dominate Obito and force him to cast Rinne Tensei
So all those times obitowas serious instead of goofy it was madara controlling him via black zetsu which is his will? Maybe madara could watch everything when he made black zetsu by infusing hi will and conscious in him like orochimaru.