changed inlineAB to bind goal events correctly