fix for customhtml problem in some browsers  +  attempted fix for continuous reload problem, more verbose errors