coding menu dialog (Edit,Del,Cancel)  favorite