added links that work and adjusted margin behavior