set up basic structure for running as applet and frame