Defined the index action