directive with controller inside