fix reload of grid
reloading grid doesn't reset tree expanding
fix whitespace (should be spaces, not tabs)