parsing and inserting data for dom
added style