adjusted to pull in the angular $Scope data.