passing stored values to view