ViewState as enum