Updated ajax link generation