Added some code for Zoom to fit nodes