Update json action to support auto refresh better