added state2.js > new state handler