refactored AppManager & EventsManager to Onion classes