Refactored useractivity link and title generation