added window resize handler to search results