a small helper for making tab views