Improve future-modularity of updateUi()
Close link toolbar on enter
Don't call updateUi() with a null selection
Reuse guard