MainContent variable control added