remove editor reference once it is destroyed to avoid confusing which editor to draw in