Storing resource tree width in preferences