Fixed complitaion.
refactoring dialogue subview
Remove unneded revert and delete slots