Fix call to view.focus.
Do some more clean-up when table is removed from DOM.