Fix wrapping, bind events in afterRender so they don’t get lost