Reinstate the click handler after replacing the next page link