added past challenges functionality