its been moved to the view, i'll remove all unused variables/functions soon (I still have a lot in stock count controller and factory)