added ability to post and update posts