Wrote queries for the community and the global page and changed the UI for the pages