Changing the "onWindowResize" to we launched externally