Added collapse
Start to work on duplicate keys.
Use ng-blur directive.