injecting dependencies, keeping id specific logic out of controller and views so that they know less if not nothing about each other