Replacing $watch with $observe