Limiting view after showing all items

This should fix the issue not all items are shown when the page loads
with a search and the search is removed later.