cleaned Panel class