communication between controller and directive