Fix argument error on disposing
Implement dialog component deletion