updated html to render based on device dpi, width and height