little refacto off interface.js and switch order off rebase state on DOM