ADDED some features on tag input