remove elements query in populate tab fun