modify global variable function and apply refine simple url params