fixed app control bugs