Handle tab events.

We need to handle `onCreated` and `onUpdated`. Also `onSelectionChanged` was deprecated.