Use Flag type to manage display state