bug fix of editor toolbar and swich between readonly and editing mode