Currently state is saved on each change. It's ok with local storage but if we are going to implement remote storage (save on server via ajax) than it may be too heavy to send request with whole state on every change. One way is to implement timer that will save state every 5 (10) seconds.