Saving expansion state