Added custom sub addition dialog

Fixed bug on change dialog