smviewer onchanged