dynamic url loading to avoid 404 error