Added $watch expression in directive to make it change when the value changes