Don't show tab if empty
Fix tab hide