replacing some html elements