dispose of preview editor and tool console.