fix logic query error, when retrieving relations of multiple pages
add new utility method getPagesRelatedTo
show checkbox indicator for primary relation in relations widget