Making events and functions clickable