Refactored 'quiz ui' into separate file.