comment update functionality