only pass main window as argument