implement expand collapse of topics