fxied global and added an html callback