fixed minor bug linking rep page and state page