restored original functionality to "Cancel" button

I modified the method so I could test my linked list, and forgot to
change it back