Reduced number of global variables that used to store visibility option string from 3 variables down to 1 variable