Change method for storing folds to the restore_view plugin