helper for next link clicked  for Phot/Video

put into dataFunctions, still need to put implement in main