remove hrefs and switch to using an if/else