Run elementQuery after new tab is selected