link function changed to controller function.

+ don't need link function anymore.