Using ValueChanged mainClass to set main class.