pass metrics to view/metrice