Corrected URLs and added onclick events for buttons in index.html