Added session saving for the base editor