crating the update method for MyPlaces