Clean url change state when scroll is close to window top