Central controlling of tiles using angularjs