added functionality to clear the slate when entering the panel