Added functionality to create reply button