Reset page scroll when changing state.