updated the warning alert to ignore sub level nav