Update mainConfig

Fix enable/disable control mode on mouse leave/enter