add getters and setters in core
add getters in MyPanel