mpu code added, added toggles for controller class