added publish and withdraw methods
removed json api stuff
publish, withdraw, preview