adds recursive association in pages