add indexAction to controller