Changed the events to "onLoad" for creating the MCW