Adjusted Variable names
FormatTreeView: Display valid menu items only