change getElementById to lookup