when ClearSlot is called, it will call content==null and thus expectes the panel to get cleared.