init implement attach asstest for widget loaded by ajax api