Added reply function to detail view