adds editing to posts