Move starting the browser into the click event handler.