adds functionality to save comments