fixing links and pulling out main div from html