put jaxedit object into a closure
fix for share button