Sorry to say but I didn't understand it properly. You mean to say that every Backend would inherit the dialog or should contain a dialog object ? Also how my dialog class would have different implementation for Add, Edit, Delete ? Can you please explain ..