change 'onchange' attribute in view to api.onchange'