Added saving and loading to the editor