Clicking a button no longer reloads the page