changed approach of adding new comments by using rest api