fix call changeState + update index.html