Clean up quiz view code