html viewer opening and rendering