added isolate scope and controller to snippet directive