Extracting the nested click handler would be nice.