add update method for mptt