implemented add comment functionality