add route data from controller to view.

move viewAction into viewData.action