Fix bug: Selected view type

- View type default to community default type if the type is nil, empty
  or incorrect
- View type defaults to app default, if community default is not present
  of incorrect