changed to angular directive
changed to angular directive