updated it so that the panel clears.