passing result back to view correctly now