adding "showAdvanced" feature.