Use new admin hook to prevent js error