fix browser refresh and sequence