Added global search to contacts modal

Closes #539