Update code to resize the browser window.