fix the browser navigation issue