hm consider moving the factory to 'services' if its used outside of this controller