Adding log output when clicking from ui thread