Shorten tab labels by filtering out longest common substrings.
Handle errors when loading a file in the GUI without crashing.