add solve button that makes ajax call to get the first solution