added edit functionality for comments