#63 add a checkbox to check if dialog shoudl be closed