Load the window when it renders