Implement appMode in Activities