fixed logic error in shoppingView