moved definition of the sigma instance into controller; updated graph directive