Updating button code in main html file