updates layout to link to tag indices properly