remove dialog-wrapper after closing dialog