Update element as needed