Replace _onTableCreated with events