Maincontroller edited