refresh buttons on dialog close reimplemented