Updated Nestable with a callback function