add update database to add and delete in genericDashBoardDialog.

didn't fix the modal dialog click twice prob.
When the dialog is alone, it's ok.