added JTabbed pane instead of different JFrames