I thought it might be better performance wise. As those buttons won't be used most of the time, I thought it would make sense to update the link only when needed (e.g. on hover or on click).