nodepanel: added controls for FF2d and refactoring.