edit post and update view