added pop up messages when checking priorities