Refactor old add subactivity name to more generic addListener().