display titles in actionbar, added null check for empty labels