Prevent duplicate links during ajax