moves representation updating logic into RepresentationController