use location.replace when enter the page first time