added a case for Panel