parse challenges response from api and populate dom