finish update post functionality