Refactored search code using Inject and Select. Fixed 'Display Contacts' bug that displayed the wrong contact