finished updating main_window - need to fix missing refs