change to using event:attr instead of setting