removed absolutely positioned anchor tags and replaced with element wrapping anchor tags
cleaning up and DRYing the templates