Updated with drop menu market linking. Still a mess, also infinity loop bug somewhere