remove dialog from dialogStack if it is closed with 'ok' or 'close'
button