fix crash when text is empty && add delegate to get selected tag's index
fix crash when text is empty && add delegate to get selected tag's index
clear up whitespace
remove else
Merge pull request #17 from passerbied/master

Add delegate to get index of selected tag