WHY WON'T THE MAIN PAGE WORK PROPERLY

also fixed up qr gen