added jquery selection for gateways