generated store controller with index