defined a resources link and data in template, removed flat pages