html sample improvements