Refactored user activity APIs to support custom/dynamic link