Add the view dialog class