added function for changing the wishlist and adding/changing an item