add client reactive code