Added AddDealDialog and made some refactoring to the code