Update post method