generates stores controller