We also reorganize the click handlers to live in the main UI file for the element, and depend less on initialization order.