public function saveContact(contact $contact)
    {
        $contact->save();
        foreach ($this->contacts as $k => $contactdb) {
            if ($contactdb->id == $contact->id) {
                $this->contacts[$k] = $contact;

                return;
            }
        }
        $this->contacts[] = $contact;
    }