update http
use addEventListener first