add save comments function