moved window setups to resize event