I think the content of the two OnClickListeners should be merged into one single function that takes the action string and uuid string as parameters. That will make very clear what is specific to how the sec-client is integrated.