add edit function for comment