added logic to display tabs if there is now items in them