fixes #12
added in menu to frame
added in parent to subpanel
created external function for action
closes #11