Moved common editor functions to BaseController