fix view function of news controller