Added button for adding a contact. Refactorized som code