change the localhost url to dynamic