changed the index bet controller