added ID's to buttons and small changes to script.js