layouts, html parsing, images, video issue fixes