updating content and styles