add post and comment edit functionality