modify document/types api
loading document type on selection
simplify loading