fixing returned html page