Structure for the editor and viewer