Adapted VariableComponent to DynamicSplitPane + index bug fix on DynamicSplitPane + some code refactoring