amend onButtonStateChanged so that it uses the new button labels in course.json - fixes issue #484