add click events to UI