don't add an id to local/repeated views
make sure theState exists when potentially removing ids
appropriately handle local variables used for UI components when attaching markup eventing