Update MDI interface and remove trash from Window code.