fix ui flicker when editing contact details