integrated WYSIWYG editor into new cp page and fixed some small problems in controller