folded play functionality into pane obj