class for panel object used to create window