Stacked tabs added but not behaving correctly