edit post method 2