function to show replies