Restrict click event to link