add id to buttons in generated HTML