tidied up publishing functions and views. got wysiwig displaying every time