added memory dc to main window