only display results if query still valid