fixing bug with styles and htmls