support edit function for sendmethod