first working jpanel implementation