managing back and forward movement through quiz