work on add and edit domain.