added location.reload to loop