edit: toggle editor dynamically