added element query as a shim and called refresh on resize events