Add post edit function.