implemented reply with smart reply