added default viewmode to node box and provided an API