added way to update posts
fixed some small bugs