using controller with scope