shows loading when link clicked