remove closedialog
remove occurance of closedialog
try to fix compile bug, open for other compilers than gcc
fixes close
update dependency