[DF-2467] refactoring of baseAddEntityDialog