Added events for links