- fixed the bug where wrong id and class name was attached to the div which broke the editing process for theorem