new chain button

the set_num_states method doesn't seem to be working