added function varto each problem then added buttons to each on html page