Add track by in ng-repeat and improve layout
Add a directive for the layer manager