added controller logic to find related people by table. also added more functions in app.js for user to quick register. introduced ng-switch