refresh tab according to url