Move window.Em into main.