add edit comments functionality