generalized index view, got search function working again