adding support for collection pages using json