add base class WindowPanel