initialize next_url