added a def for displaying the replies