add controller and scope variables