Add callback to renderResults function