rewrite into tabs using pills nested