implemented ui functionality to add a contact