Stuff happened

I don't know how it works :/ and why frame.closeDialog don't, and you
know what? I don't even care anymore...