display results when tab is selected