set up reply functionality