add callback after create element