Adding new functionality to check to see if link has already been saved
Code cleanup