refactored search and index view - both use the new table partial