Trying to reuse elem as pane