Made minor changes to button code in html. And PageChange function in index.js