callback now only returns index, not complete button anymore