add function to discard edit of contacts
cosmetic changes