Turning EclihanMainWindow into panel