refactor regex array
refactor open story link function
refactor open story link function