Added UI elements and click handlers.