Updated from using renderView to indexAction