use location.replace() instead of meta refresh