add separate controller for directive