Enabling/disabling of next page button no longer hangs the browser.