controller and scope