optimize replay view