Removing duplicate href code