refactoring of address input; add edit view and contacts view