refactored list UI building to a function
tests and funcionality for adding a contact to a global model
refactored add contact functionality; clears the input fieldafter adding