fixed index action for search functionality