Allow tab type to be customized