fixing links urls and targets