added category purchase listcreation; clears list between category toggling.
Added currentCategory global variable