add a new callback for opening nodes