Changed dreamFactory to goalFactory in goals controller, and made sure to inject the dependency