added quiz page functionality