wrong error checking
preserve comment when rendering a page preview
fix cancel buttons