reconfigured the purchases page to load by type