edit and publish new post