Implement tab creation and destruction in dialog edition