Only add metadata type it is not in the list
Merge document type optional and required metadata type add views