Fixes #156: state is now updated correctly, file path is shown correctly
in window title when CSV, CXT or OAL files are loaded