added scan logic to account for multiple cartridges being bought, fixed ui elements