revamping quiz#index. Added if/else to check for existing quiz