add write to html function with bootstrap