updating on link click