display view sections conditionally