adding frontend js next prev ref work