adding links between front and back