refactor ngArcDynamic directive (still not working)