changing static url to dynamic urls