implementing the quit and the next functions
using the quiz data to populate the app template