Adding event listener to add comments