Add function call in html for secondary container