did we intentionally place the state check after the link_to?