add data and styles