? Very minor in this specific case but is it better to set all the attributes before making the window visible