challenge detail page implemented with query