adding a dialog view