create tabs automatically