Main Window cleanup