inject the html using a callback funciton