added feature toggle for diagnostics menu