Implemented event dispatcher in main App class