js and view changes