templatize reply box rendering