update and delete a marker