Handle tab events.
Merge pull request #49 from okonomiyaki3000/tab_events

Handle tab events.