Call update method on window.resize