globalContext owrking on client side