moving batch to a get method on the index action