modify post edit mothod