A few changes to getState in mriview.js