settings directive and controller work