Minor change in maincontroller