pass results of mapreduce to view