Uncommented erasing command in button action listener