Added application state manager, changed .on calls to listenTo