Added Functionality to Buttons in index.html