updates to front end, logic for adding URLs to prevent duplicate shortUrls