add composeTab function