fix save function emails and contact editing