Properly clear the panel