added right click menu for main panel; inproved node behavior/fixed bugs