added methods to edit and delete contacts