app.js state activation fix