functionality of comment and rating