prepare for integrating switch between modes in commentedit