Scriptoptions killed on exit, made dialog windowless and fixed inside widget