state handling webfolder.js