updating with element changes