add check of length of body to avoid losing it if an old edit tab of the
same ID is open