added tooltip to hint how to exit file mode
fixed file loading bug

when opening an invalid file while in file mode, the loading would
sometimes destroy the current state.
fixed crash when resizing with set rulers