viewConfigSelector helper. Bases on your viewConfig and the input, give user different views.