modified newsdetail func