fix bug where clicking different links would put you in an invalid state w/r/t url and displayed content