update html structure and styles