generate store controller and index method