fixed lab
fixed bugs and integrated maincontroller
spaces