finish news detail function.