some fixes

After editing parts all unpublished rows were expanded. Now all are
closed. Have to find a way to let them remain their state.