adding visible prop for lastIdentity and do not set identity if lastIdentity is already the correct value