Added reminder to make tabs save on closing
Implemented saving on tab close, but introduced bug which means fileName
is transferred between tabs