converted map into a directive and to use models