Added modal editing to the editor