basic functions in ui: new, init contacts, clear contacts