refactored gridPane into class VariablePane