definine an index action