Fix preview action
Add API methods for searching the DMS by metadatas
Fix the removeEmptyData method
Fix routing