Adding angular tile state code