update post and thumbnail