correcting edit action for post