Rename indexAction to viewAction