Added the post and draft functionality